import {
  applyMiddleware,
  createStore
} from "redux";
import countReducer from "./reduces/countReducer"

import thunk from 'redux-thunk'

console.log("store调用了");

//创建store 并提供对应的reducer
const store = createStore(countReducer, applyMiddleware(thunk));

export default store;